import instance from '@/api/ajax'

// //所有榜单
export const reqRankListAllData = () => {
  return instance.get('/toplist')
}
//获取排行榜页面数据
export const reqGetRankDataList = () => {
  return instance.get('/toplist/detail')
}

// 获取排行榜详情
export const reqGetRankDetails = (idx) => {
  return instance.get(`/top/list?id=${idx}`)
}
//获取用户歌单接口
// export const reqGetRankDetails = (idx) => {
//   return instance.get(`/playlist/detail?id=${idx}`)
// }

//获取评论列表
// export const reqCommontDataList = () => {
//   return instance.get(``)
// }

//登陆的接口
export const reqToLogin = ([phNum, pwdNum]) => {
  return instance.post(`/login/cellphone?phone=${phNum}&password=${pwdNum}`)
}
